﻿
<%template _header%>

<%namespace YouHP.Utility%>
<%namespace YouHP.Model%>
<%namespace YouHP.Model.Group%>

<!--header end-->

<script type="text/javascript">
	var opwdok = false;
	var pwdok = false;
	var pwd1ok = false;
	
	function checkform()
	{
		_$("creatform").submit();
	}
</script>	


<!--主体-->
<div class="layout31">
    
<div class="col1">
    <%csharp%>TempUrl = ModuleCtrl.Header("moduleCreate","创建圈子",true,false); <%/csharp%>
    {TempUrl} 	
    
		<form action="Create.aspx?type=loc" method="post" ID="editform">
	    
         <div class="InputArea">
              <span class="area120">圈子名称：</span>    
              <span class="area2">
              <input name="groupname" id="groupname" type="text" 
                       class="colorblue" onfocus="this.className='colorfocus';"
                       onblur="this.className='colorblue'"
                       size="20" />
              </span>    
              <span class="area3">
                不少于4个字
              </span>
         </div>
         
         <div class="InputArea">
              <span class="area120">圈子所在地区：</span>    
              <span class="area2">
                    
                    <select name="province" id="province"  onchange="if(this.value !='') setCity(this.options[this.selectedIndex].value)">

                    <option value="">-请选择-</option>  

                    <%csharp%>
                    foreach(DistrictInfo Info in ProvinceList)
                    {
                    <%/csharp%>
                    <option value="{Info.Id}">{Info.Name}</option>     
                    <%csharp%>
                    }
                    <%/csharp%>
                    </select>
                    
                    <select name="city" id ="city">
                    <option value ="">-请选择-</option>
                    </select>
              </span>&nbsp;
         </div>
         
        
        <div class="InputArea">
              <span class="area120">圈子关联疾病：</span>    
              <span class="area2">
                <input type="hidden" name="diseaseId" id="dszid"/>
			    <input name="disease" id="dszname" type="text" 
				       class="colorblue" onclick="this.className='colorfocus';BOX_show('seldisease');getDiseaseList('A',1);"
				       onblur="this.className='colorblue'"   readonly="true" 
				       size="20" />
              </span>
              <span class="area3">
                填上此项让使用相同治疗的人快速找到
              </span>    
        </div>
        
        <div class="InputArea">
              <span class="area120">圈子关联治疗：</span>    
              <span class="area2">
                <input name="groupname" id="Text2" type="text" 
					   class="colorblue" onclick="this.className='colorfocus';BOX_show('selTreatment');getTreatmentList('A',1);"
					   onblur="this.className='colorblue'" readonly="true" 
					   size="20" />
              </span>    
              <span class="area3">
                填上此项让有同样症状的人快速找到
              <span>
        </div>
        
        <div class="InputArea">
              <span class="area120">圈子关键字：</span>    
              <span class="area2">
               <input name="groupkeyword" id="groupkeyword" type="text" 
					class="colorblue" onfocus="this.className='colorfocus';"
					onblur="this.className='colorblue'"
					size="60" />
              </span>    
        </div>
        
        <div class="InputArea">
              <span class="area120">圈子介绍：</span>    
              <span class="area2">
                 <input name="groupintro" id="groupintro" type="text" 
                       class="colorblue" onfocus="this.className='colorfocus';"
                       onblur="this.className='colorblue'"
                       size="60" /> &nbsp;
              </span>    
              <span class="area3">
                不超过20个字
              </span>
        </div>
        
        <div class="InputArea">
              <span class="area120">发帖权限：</span>    
              <span class="area2">
                  <input type="radio" name="groupbrowser" value="0"
                             class="colorblue" onfocus="this.className='colorfocus';"
                             onblur="this.className='colorblue'"
                             checked
                             />所有人都能发帖 &nbsp;&nbsp;
                  <input type="radio" name="groupbrowser" value="1" 
                             class="colorblue" onfocus="this.className='colorfocus';"
                             onblur="this.className='colorblue'"
                             />只有圈子成员才能法帖
              </span>    
              <span class="area3">
                
              </span>
        </div>        
        
        <div class="InputArea">
              <span class="area120">加入权限：</span>    
              <span class="area2">
                  <input type="radio" name="groupjoin" value="0"
                             class="colorblue" onfocus="this.className='colorfocus';"
                             onblur="this.className='colorblue'"
                             checked
                             />加入圈子不需要批准 &nbsp;&nbsp;
                  <input type="radio" name="groupjoin" value="1" 
                             class="colorblue" onfocus="this.className='colorfocus';"
                             onblur="this.className='colorblue'"/>加入圈子需要管理员批准
              </span>    
              <span class="area3">
                
              </span>
        </div>    
         
        <div class="InputArea">
              <span class="area120"></span>  
              <span class="area2">                                               
                    <a class="btn90x21" onclick="SubmitForm();" >创建</a>
                </span>
         </div>
        </form>	
    
    <%csharp%>TempUrl = ModuleCtrl.Footer("moduleCreate"); <%/csharp%>
    {TempUrl}
    
    <%template _floatshowd%>
	<%template _floatshowt%>
	<%template _floatshows%>
    
</div>
	
	<div class="col2">
	     <%csharp%>TempUrl = ModuleCtrl.Header("moduleOther","其他",true,false); <%/csharp%>
         {TempUrl} 	
	     <%csharp%>TempUrl = ModuleCtrl.Footer("moduleOther"); <%/csharp%>
    {TempUrl}
	</div>
</div>
<!--主体-->
<%template _footer%>
